<?php
	#	Описание для авто-загрузщика.
	$eeRO_auto['name']		= 'castle_status';
	$eeRO_auto['desc']		= 'Выводит владельца замка.';
	$eeRO_auto['version']	= 'v1.0 (только замок Пронтеры, центральный)';
	$eeRO_auto['author']	= 'Кеник';
	
	#	Модуль.
		$eeRO_base_ragnarok->query('SELECT a.`castle_id`,a.`guild_id`, b.`name` FROM `guild_castle` a JOIN `guild` b ON a.guild_id=b.guild_id ');
		
		$castles = array("Neuschwanstein","Hohenschwangau","Nuenberg","Wuerzburg","Rothenburg","Repherion","Eeyolbriggar","Yesnelph",
						"Bergel","Mersetzdeitz","Bright Arbor","Scarlet Palace","Holy Shadow","Sacred Altar","Bamboo Grove Hill",
						"Kriemhild","Swanhild","Fadhgridh","Skoegul","Gondul","Earth","Air","Water","Fire","Himinn","Andlangr",
						"Viblainn","Hljod","Skidbladnir","Mardol","Cyr","Horn","Gefn","Bandis");
						
		while ( $temp = $eeRO_base_ragnarok->fetch() )
		{
			$temp['castle_name'] = $castles[$temp['castle_id']];
			$castle_owner[] = $temp;
		}
	$eeRO_view->assign('castle_owner', array('content' => $castle_owner ,'content_size' => sizeof($castle_owner)));
